/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package event;

import net.sf.appia.core.Event;
import util.Process;

/**
 *
 * @author Gustavo
 */
public class DeliverEvent extends Event{

    private Process process;
    
    /**
     * 
     * @param message format: content + " " + id + " " + epoch
     */
    public DeliverEvent(String message) {
        
        String[] messages = message.split(" ");
        
        process = new Process();
        
        process.setId( Integer.parseInt(messages[1]) );
        
        process.setEpoch( Integer.parseInt(messages[2]) );
            
    }
    
    public Process getProcess(){
        return this.process;
    }
    
}
